// 文档管理专用接口
import request from '@/utils/request'

// 获取看板数据
export const getDataPlnel = () => {
  return request.get('/file/search/lnfo')
}

// 获取表格数据
export const getTable = ({ page, size, fileName, fileTime, userPhone }) => {
  return request.get('/file/search/one', {
    params: {
      fileTime,
      page,
      size,
      fileName,
      userPhone
    }
  })
}

// 删除

export const deleteFile = ({ fileId, reason }) => {
  return request.get('/file/delete', {
    params: {
      fileId,
      reason
    }
  })
}

// 下载
export const downloadFile = ({ fileIds }) => {
  return request.get('/file/download', {
    params: {
      fileIds
    },
    responseType: 'blob'

  })
}
